@font-face {
  font-family: "PangMenZhengDaoBiaoTiTiMianFeiBan-4";
  src: url("/fonts/PangMenZhengDaoBiaoTiTiMianFeiBan-4.TTF");
}

@font-face {
  font-family: YOUSHEBIAOTIHEI;
  src: url("/fonts/YOUSHEBIAOTIHEI-2.TTF");
}

@font-face {
  font-family: AGENCYR;
  src: url("/fonts/AGENCYR.TTF");
}

$--color-text-blue: #00f6ff;
$--color-text-white: #dbeffd;
$--color-text-gray: #dbeffd ;
$--color-border-blue: #2958cc;

.ysqjcdp-layout {
  color: white;

  .ff-agencyyr {
    font-family: AGENCYR, serif;
  }

  .c-text-blue {
    color: $--color-text-blue;
  }

  .c-text-gray {
    color: $--color-text-gray;
  }

  /* 文字从上到下 */
  .vertical-text {
    writing-mode: vertical-lr;
  }

  .half-width {
    width: 50%;
  }

  .half-height {
    height: 50%;
  }
  // 前方带图案小标题
  .little-title {
    font-size: 16px;
    font-family: "Microsoft YaHei", serif;
    text-align: left;
    color: #fff;
    line-height: 23px;
    padding-left: 19px;
    position: relative;

    &::before {
      content: "";
      background-image: url("~@/assets/images/ysqjcdp/little-title-icon.png");
      background-size: 100% 100%;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      position: absolute;
      width: 16px;
      height: 13px;
    }
  }

  .panel-header-bg {
    background: url("~@/assets/images/ysqjcdp/panel-header-bg.png") no-repeat left bottom;
    background-size: 100% 100%;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    padding-left: 59px;
    position: relative;
    flex: 0 0 auto; // 均flex-0
    z-index: 2;

    .title-text {
      background: linear-gradient(0deg, #00eaff 0%, #fefeff 84%);
      background-clip: text;
      -webkit-text-fill-color: transparent;

      /* Chrome, Safari */
      pointer-events: auto;
      cursor: pointer;
      font-size: 32px;
      font-family: YouSheBiaoTiHei, serif;
      // font-family: "PangMenZhengDaoBiaoTiTiMianFeiBan-4", serif;
      color: #005aff;
    }
  }
  // 小区域背景
  .panel-zone-bg {
    padding: 6px 8px;
    background: rgba(11, 69, 167, 0.2);
    border: 1px solid;
    border-image: linear-gradient(0deg, #1263cd, #044ea6) 1 1;
    display: flex;
    flex-direction: column;
  }

  // 大区域背景
  .panel-zone-big-bg {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: -7px;

    &.left-top {
      background: linear-gradient(45deg, rgb(2 37 84 / 0%) 0%, #0225615c 100%);
      padding-right: 10px;
      border-top: 2px solid transparent;
      border-image-source: linear-gradient(270deg, #0dc0fc 0%, #12c3ff 47%, #04285700 100%);
      border-image-slice: 1;
      position: relative;

      &::after {
        position: absolute;
        z-index: 5;
        right: 0;
        top: 0;
        height: 100%;
        width: 1px;
        content: "";
        background-image: linear-gradient(0deg, #066ef800, #05dbf8);
      }

      .panel-zone-bg {
        border-image: linear-gradient(227deg, #1263cd, #1263cd, #044ea600) 1 1;
      }
    }

    // &.left-bottom {
    //   background: linear-gradient(45deg, rgb(2 37 84 / 0%) 0%, #0225615c 100%);
    //   border-top: 2px solid transparent;
    //   border-image-source: linear-gradient(270deg, #0dc0fc 0%, #12c3ff 47%, #04285700 100%);
    //   border-image-slice: 1;
    // }

    &.right-top {
      padding-left: 10px;
      background: linear-gradient(225deg, rgb(2 37 84 / 0%) 0%, #0225615c 100%);
      border-bottom: 1px solid transparent;
      border-image-source: linear-gradient(90deg, #0dc0fc 0%, #12c3ff94 57%, #04285700 80%);
      border-image-slice: 1;
      position: relative;
      border-radius: 19px 0 0;

      &::after {
        position: absolute;
        z-index: 5;
        left: 0;
        top: 0;
        height: 100%;
        width: 1px;
        content: "";
        background-image: linear-gradient(180deg, #066ef800, #05dbf8);
      }

      &::before {
        position: absolute;
        z-index: 1;
        left: 0;
        top: -1px;
        height: 2px;
        width: 100%;
        content: "";
        background-image: linear-gradient(90deg, #066ef800, #05dff3de, #05dbf84a);
      }
    }

    // &.right-bottom {
    //   padding-left: 10px;
    //   background: linear-gradient(225deg, rgb(2 37 84 / 0%) 0%, #0225615c 100%);
    //   border-image: linear-gradient(315deg, #020c4900 0%, #04aff1) 1 1;
    // }
  }

  .switch-button-tab-bg {
    width: 100%;
    height: 26px;
    background: url("~@/assets/images/ysqjcdp/switch-panel-header.png") no-repeat left top;
    background-size: 100% 100%;
  }

  .el-loading-mask {
    background-color: #3334341f;

    .el-loading-spinner {
      background: #0000000f;
    }
  }
  // 地图工具栏
  .locate-panel-container {
    border: 1px solid #0386c8ba;
    background: #042976d6;

    .lp-text-button {
      background-color: rgb(13 51 100);
      border: 1px solid #06559a;
      color: #e3eef7;

      &:hover {
        background: linear-gradient(0deg, #089cdc 0%, #075cac 100%) !important;
      }
    }

    .el-input__inner {
      background: #0d3364;
      border-color: #06559a;
      color: #fff;
    }
  }

  .el-container.map-layer-controller {
    border: 1px solid #0386c8ba;
    background: #042976d6;

    .el-checkbox .el-checkbox__inner {
      background: #024b8be6 !important;
      border-color: #047bb7 !important;
    }

    .el-checkbox__input.is-indeterminate .el-checkbox__inner,
    .el-checkbox.is-checked .el-checkbox__inner {
      border-color: #04aeff !important;
      background: #0263d1 !important;
    }

    .el-tree {
      color: #fff;

      .expanded.el-tree-node__expand-icon.el-icon-caret-right {
        color: #fff;
      }
    }

    .custom-tree-node {
      .custom-tree-node-content {
        .svg-icon.c-white {
          color: #fff;
        }
      }

      .my-layer-name {
        &:hover {
          background: rgba(21, 120, 255, 0.3);
        }
      }
    }
  }

  $bgColor: rgba($color: #042653, $alpha: 0.8);
  $textColor: #fff;

  .map-search-panel {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    .el-input-group__append {
      background: $bgColor;
      border-color: #0386c8ba;

      .el-button {
        >i {
          color: $textColor;
        }
      }
    }

    .el-input__inner {
      background: $bgColor;
      color: $textColor;
      border-color: #0386c8ba;
    }

    .el-input-group__prepend {
      background: rgba(4, 38, 83, 0.3);

      .el-select {
        .el-input {
          .el-input__inner,
          .el-select__caret {
            color: $textColor;
          }
        }
      }
    }
  }

  /* padding/margin
 方向：p-a 所有方向，p-v 上下，p-h 左右， p-t 上，p-b 下，p-r 右，p-l 左 */
  $sizes: 0,4,6,8,12;

  @each $size in $sizes {
    .p-a-#{$size} {
      padding: #{$size}px;
    }
    .p-v-#{$size} {
      padding-top: #{$size}px;
      padding-bottom: #{$size}px;
    }
    .p-h-#{$size} {
      padding-left: #{$size}px;
      padding-right: #{$size}px;
    }
    .p-l-#{$size} {
      padding-left: #{$size}px;
    }
    .p-r-#{$size} {
      padding-right: #{$size}px;
    }
    .p-t-#{$size} {
      padding-top: #{$size}px;
    }
    .p-b-#{$size} {
      padding-bottom: #{$size}px;
    }
  }
}

.ysqjcdp-table {
  width: 100%;
  height: 100%;
  background: transparent !important;
  padding: 0;

  .vxe-cell {
    padding-left: 5px;
    padding-right: 5px;
  }

  .vxe-pager,
  .vxe-toolbar,
  .vxe-table--body-wrapper,
  .vxe-table--header-wrapper {
    background: transparent !important;
  }

  .vxe-header--row {
    background: url("~@/assets/images/ysqxx/table-header.png") no-repeat left bottom;
    // background: linear-gradient(180deg, transparent 0%, rgba(84, 179, 247, 0.3) 100%);
    background-size: 100% 17px;
    font-size: 14px;
    color: #34d7fa;

    .wrap-header-cell.vxe-header--column {
      padding: 0 !important;
    }

    .vxe-header--column {
      padding: 6px 0 !important;
      background: transparent;
      height: 32px;
    }

    .vxe-resizable.is--line {
      display: none;
    }
  }

  .vxe-body--row {
    color: $--color-text-gray;
    font-size: 14px;
    background: transparent;

    &.row--current,
    &.active-row {
      background: transparent;
    }

    &.row--current .vxe-body--column,
    &.active-row .vxe-body--column {
      background: linear-gradient(180deg, transparent 0%, #0262e7 100%) left bottom no-repeat;
    }

    .vxe-body--column {
      padding: 7px 0 !important;
      background: linear-gradient(180deg, transparent 0%, rgba(3, 91, 211, 0.33) 100%) left bottom no-repeat;
      // background: linear-gradient(180deg, transparent 0%, rgb(3 91 211 / 33%) 100%) left bottom no-repeat;
      background-size: 100% 70%;
      height: 33px;
    }

    .vxe-cell {
      line-height: 14px;
    }
  }

  .vxe-pager {
    color: $--color-text-gray;

    .vxe-pager--jump-prev,
    button {
      background: #083166;
      border: 1px solid $--color-border-blue;
    }

    .vxe-input--inner {
      background: #083166;
      border: 1px solid $--color-border-blue;
      border-radius: 4px;
      color: #fefefe;
    }
  }

  .vxe-cell--filter .vxe-filter--btn {
    color: #34d6fa69;

    &:hover {
      color: $--color-text-blue;
    }
  }

  .col--filter.is--filter-active .vxe-cell--filter .vxe-filter--btn {
    color: $--color-text-blue;
  }

  .el-popover {
    background-color: rgba(8, 49, 102, 1);
    border: 1px solid $--color-border-blue;
    border-radius: 4px;
    color: white;

    .table-filter-panel {
      .el-input__inner {
        background: rgba(8, 49, 102, 0.3);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;
        color: #fefefe;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
      }

      .el-button {
        background: rgba(8, 49, 102, 0.3);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;
        color: #fefefe;
      }

      .el-select-dropdown {
        background-color: rgba(8, 49, 102, 1);
        border: 1px solid $--color-border-blue;
        border-radius: 4px;

        .popper__arrow {
          border-top-color: $--color-border-blue !important;
          border-bottom-color: $--color-border-blue !important;

          &::after {
            border-top-color: rgba(8, 49, 102, 1) !important;
            border-bottom-color: rgba(8, 49, 102, 1) !important;
          }
        }
      }

      .el-select-dropdown__item {
        color: white;

        &.hover {
          background-color: #0473e1;
        }
      }
    }
  }

  &.column-merging {
    .vxe-header--column:not(.col--last) {
      border-right: 1px solid;
      border-image: linear-gradient(0deg, rgba(37, 101, 159, 0) 0%, #5cadff 49%, #042e61 99%) 1 1;
    }

    .vxe-body--column:not(:last-child) {
      border-right: 1px solid #114e99;
    }
  }
}

/* 滚动条样式 */
*::-webkit-scrollbar-thumb {
  background-color: rgba(21, 76, 194, 0.2);

  &:hover {
    background-color: rgba(21, 76, 194, 0.8);
  }
}

/* input、select、cascader...样式 */

.blue-select {
  font-size: 12px;
  min-width: 80px;
  max-width: 110px;

  &.el-select .el-input__inner,
  &.el-cascader .el-input__inner {
    padding-left: 8px;
  }

  .el-input__inner {
    background: rgba(16, 88, 217, 0.3);
    border: 1px solid $--color-border-blue;
    border-radius: 4px;
    color: #fefefe;
    height: 24px;
    line-height: 22px;
    font-size: 12px;
  }

  .el-input__prefix {
    left: 0;
  }

  .el-input__icon {
    line-height: 24px;
  }

  &.blue-date-picker {
    width: 80px;

    .el-input__inner {
      padding-left: 25px;
      padding-right: 5px;
    }
  }
}

.blue-range-date-picker.el-input__inner {
  width: 260px;
  background: rgba(16, 88, 217, 0.3);
  border: 1px solid $--color-border-blue;
  border-radius: 4px;
  color: #fefefe;
  height: 24px;
  line-height: 22px;
  font-size: 12px;

  .el-range-editor--mini .el-range__icon,
  .el-range-editor--mini .el-range__close-icon {
    line-height: 14px;
  }

  .el-range-separator {
    line-height: 14px;
    color: #fefefe;
  }

  .el-range-input {
    background: transparent;
    color: #fefefe;
    height: 20px;
    line-height: 20px;
  }
}

.blue-select-dropdown {
  background-color: rgba(8, 49, 102, 1);
  border: 1px solid $--color-border-blue;
  border-radius: 4px;
  //  日期范围选择
  &.el-date-range-picker {
    color: white;

    .el-date-table td.next-month,
    .el-date-table td.prev-month {
      color: #939497;
    }

    .el-date-table td.today span {
      color: $--color-text-blue;
    }

    .el-date-table td.in-range div {
      background-color: #154cc2;
    }

    .el-date-table td.available:hover {
      color: $--color-text-blue;
    }
  }

  .el-select-dropdown__item {
    color: white;

    &.hover {
      background-color: #0473e1;
    }
  }

  .el-cascader-node {
    color: white;

    &:hover,
    &.in-active-path {
      background-color: #0473e1;
      color: white;
    }
  }

  .el-cascader-menu {
    border-right: 1px solid $--color-border-blue;
  }

  .el-date-picker__header .el-picker-panel__icon-btn,
  .el-date-picker__header .el-date-picker__header-label,
  .el-month-table td .cell {
    color: white;
  }

  .el-month-table td.disabled .cell {
    color: #939497;
    background-color: transparent;
  }

  .popper__arrow {
    border-bottom-color: $--color-border-blue !important;
    border-top-color: $--color-border-blue !important;

    &::after {
      border-bottom-color: rgba(8, 49, 102, 1) !important;
      border-top-color: rgba(8, 49, 102, 1) !important;
    }
  }
}

.blue-popper {
  &.el-tooltip__popper.is-dark {
    background: rgba(8, 49, 102, 1);
    border: 1px solid $--color-border-blue;

    // &.popper__arrow {
    //   border-bottom-color: rgba(8, 49, 102, 1);
    // }
  }

  &.el-tooltip__popper[x-placement^="bottom"] .popper__arrow {
    border-bottom-color: $--color-border-blue;

    &::after {
      border-bottom-color: rgba(8, 49, 102, 1);
    }
  }
}
// 地图相关
.ysqjcdp-map.map-container {
  .ol-popup.tips > div {
    border: 1px solid #0386c8ba !important;
    background: #042976d6 !important;
    color: #e3eef7;

    .closeBox.hasclosebox {
      right: -0;
      top: -8px;
      color: #fff;
    }

    .ol-popup-content {
      padding: 10px 20px 10px 10px;
    }

    .anchor {
      color: #042976d6 !important;
    }
  }

  .ol-popup.ysqjcdp-map-pop > div {
    border: 1px solid #0386c8ba !important;
    background: #042976d6 !important;
    color: #e3eef7;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    & .anchor {
      color: #0386c8ba !important;

      &::after {
        border-color: #042976d6 transparent !important;
      }
    }
  }

  .ol-popup-content {
    .map-card {
      .map-card-header {
        background: linear-gradient(-90deg, #032f6800 0%, #0477c6 50%, #04acf6 100%);
      }

      .map-card-content {
        .info-cell {
          .info-label {
            color: #e3eef7;
          }

          .info-value {
            color: #fff;
          }
        }

        .image-title-label {
          color: #fff;
        }

        .dashed-line {
          border-top: 1px dashed #e3eef7;
        }
      }
    }
  }

  .ysqjcdp-map-pop.ol-popup {
    margin: -40px -21px;
  }

  .ysqjcdp-map-pop.ol-popup-top.ol-popup-left {
    margin: 40px -22px;

    .anchor {
      color: #04a6f1 !important;

      &::after {
        border-color: #04a6f1  transparent !important;
      }
    }
  }

  .ysqjcdp-map-pop.ol-popup-right {
    margin: -40px 21px;
  }
}

.ysqjcdp-map-search.map-search-panel-popup.el-popper {
  background: rgba($color: #043676, $alpha: 0.8);
  border-color: #0386c8ba;

  .el-select-dropdown__item,
  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover,
  .el-dropdown-menu__item,
  .el-dropdown-menu__item:hover,
  .el-autocomplete-suggestion__list > li {
    color: #e3eef7;
  }

  .el-select-dropdown__item.selected,
  .el-select-dropdown__item.hover,
  .el-dropdown-menu__item:hover,
  .el-autocomplete-suggestion__list > li:hover,
  .el-autocomplete-suggestion__list > li.highlighted {
    background: linear-gradient(0deg, #089cdc 0%, #075cac 100%);
  }
}
// modal
.ysqjcdp-modal {
  color: $--color-text-white;

  .vxe-modal--header,
  .vxe-modal--box {
    background-color: #032654;
    border-color: $--color-border-blue;
  }
}
